Create API Keys
curl --request POST \
--url https://api.hyrd.de/v1/company/api-integrationsimport requests
url = "https://api.hyrd.de/v1/company/api-integrations"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.hyrd.de/v1/company/api-integrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyrd.de/v1/company/api-integrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyrd.de/v1/company/api-integrations"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hyrd.de/v1/company/api-integrations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyrd.de/v1/company/api-integrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"message": "Success",
"status": 200,
"data": {
"id": 6,
"value": "31c9acca-7075-4bdb-bf83-ff4994843abb"
}
}{
"message": "You are not authorized",
"status": 401
}Company > Api Integrations
Create API Keys
POST /v1/company/api-integrations
This endpoint is used to create a new API integration for the company.
Request Body
- No request body parameters are required for this endpoint.
Response
The response for this request will be in JSON format with the following schema:
{
"type": "object",
"properties": {
"message": {
"type": "string"
},
"status": {
"type": "integer"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"value": {
"type": "string"
}
}
}
}
}
The response will include:
-
message: A string indicating the status message. -
status: An integer representing the status of the request. -
data: An object containing theidandvalueof the newly created API integration.
Example Response
{
"message": "",
"status": 0,
"data": {
"id": 0,
"value": ""
}
}
POST
/
v1
/
company
/
api-integrations
Create API Keys
curl --request POST \
--url https://api.hyrd.de/v1/company/api-integrationsimport requests
url = "https://api.hyrd.de/v1/company/api-integrations"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.hyrd.de/v1/company/api-integrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyrd.de/v1/company/api-integrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyrd.de/v1/company/api-integrations"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hyrd.de/v1/company/api-integrations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyrd.de/v1/company/api-integrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"message": "Success",
"status": 200,
"data": {
"id": 6,
"value": "31c9acca-7075-4bdb-bf83-ff4994843abb"
}
}{
"message": "You are not authorized",
"status": 401
}Response
Created
The response is of type object.